package com.boot.service.impl;

import com.boot.dao.PermissionMapper;
import com.boot.model.Permission;
import com.boot.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zhengshunzhi
 * @Date: 2018/9/4 16:22
 * @Description:
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> findPermissionsByRid(long rId) {
        return permissionMapper.findPermissionsByRid(rId);
    }
}
